<?php
/**
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       Cake.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <?php echo $this->Html->charset(); ?>
    <title>
        <?php echo $title_for_layout; ?>
    </title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <?php
    echo $this->Html->meta('icon');

    echo $this->Html->css('bootstrap');
    echo $this->Html->css('bootstrap-responsive');
    echo $this->Html->css('jquery.nanoscroller');
    echo $this->Html->css('flexgrid/flexigrid');
    echo $this->Html->css('custom');
    echo $this->Html->css('student/styles');

    echo $this->Html->script('jquery-1.7.2.min.js');
    echo $this->Html->script('maskinput.js');
    echo $this->Html->script('bootstrap/bootstrap.min.js');
    echo $this->Html->script('jquery.nanoscroller.min');
    echo $this->Html->script('flexigrid.js');
    echo $this->Html->script('jLib.js');

    echo $scripts_for_layout;
    ?>
</head>
<body>
<div class="container-fluid">
    <?php echo $this->element('loader'); ?>
    <div class="row-fluid">
        <?php echo $this->Session->flash(); ?>

        <div class="navbar navbar-fixed-top nbg">
            <div class="navbar-inner">
                <a class="brand" href="<?php echo $this->Html->url(array('action' => 'index')); ?>">
                    <?php echo $this->Html->image('app/logo_sm.png', array('height' => '24')); ?>
                </a>

                <span class="title pull-left"><?php echo $title_for_layout; ?></span>

                <ul class="nav pull-right">
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-user"></i> <b><?php echo $authuser['fname']; ?></b>
                            <b class="caret"></b>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a href="<?php echo $this->Html->url(array('action' => 'logout')); ?>"><i
                                        class="icon-off"></i> Sign Out</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>

        <div class="row">

            <div id="left_nav" class="span4">

                <div id="nav_group" class="inner_shadow">
                    <?php
                        $cur_action = $this->params['action'];
                    ?>
                    <ul>
                        <li class="<?php echo ($cur_action == 'index')? 'active-li-menu': '' ;?>">
                            <a href="<?php echo $this->Html->url(array('action' => 'index')); ?>"><i class="icon-home icon-2x"></i></a>
                            <span>
                                <a href="<?php echo $this->Html->url(array('action' => 'index')); ?>">Dashboard</a>
                                <p>Home Page For All Actions</p>
                            </span>
                        </li>
                        <li class="all-tool-tip <?php echo ($cur_action == 'history')? 'active-li-menu': '' ;?>"  data-placement="right" data-toggle="tooltip" title="" data-original-title="View and print your transactions histories for bills and payments.">
                            <a href="<?php echo $this->Html->url(array('action' => 'history')); ?>"><i class="icon-list icon-2x"></i></a>
                            <span>
                                <a href="<?php echo $this->Html->url(array('action' => 'history')); ?>">Transaction History</a>
                                <p>List of recent payments</p>
                            </span>
                        </li>
                        <li class="all-tool-tip <?php echo ($cur_action == 'payments')? 'active-li-menu': '' ;?>" data-placement="right" data-toggle="tooltip" title="" data-original-title="Pay for the fees you have been billed for along with other services you ordered for and was billed to you.">
                            <a href="<?php echo $this->Html->url(array('action' => 'payments')); ?>"><i class="icon-arrow-right icon-2x"></i></a>
                            <span>
                                <a href="<?php echo $this->Html->url(array('action' => 'payments')); ?>">Payment of Mandatory Fees</a>
                                <p>Main fees, Sport, Medical, Hostel SRC, etc.,</p>
                            </span>
                        </li>
                        <li class="all-tool-tip <?php echo ($cur_action == 'order')? 'active-li-menu': '' ;?>" data-placement="right" data-toggle="tooltip" title="" data-original-title="Request for other services, bill yourself and pay for those services. You can order for services like: Transcript, Introductory Letter, Resit Registration, Penalty for late Registration, etc.,">
                            <a href="<?php echo $this->Html->url(array('action' => 'order')); ?>"><i class="icon-arrow-right icon-2x"></i></a>
                            <span>
                                <a href="<?php echo $this->Html->url(array('action' => 'order')); ?>" >Payment of Other Services</a>
                                <p>Transcript, Introductory Letter, etc.,</p>
                            </span>
                        </li>
                        <li class="<?php echo ($cur_action == 'editprofile')? 'active-li-menu': '' ;?>">
                            <a href="<?php echo $this->Html->url(array('action' => 'editprofile')); ?>"><i class="icon-user icon-2x"></i></a>
                            <span>
                                <a href="<?php echo $this->Html->url(array('action' => 'editprofile')); ?>">Edit Profile</a>
                                <p>Update your username, password etc.</p>
                            </span>
                        </li>
                        <?php
                            if($authuser['user_level'] == 'SRC'){
                        ?>
                            <li class="all-tool-tip <?php echo ($cur_action == 'report')? 'active-li-menu': '' ;?>" data-placement="right" data-toggle="tooltip" title="" data-original-title="Students Representative Council Dues Report ">
                                <a href="<?php echo $this->Html->url(array('action' => 'report')); ?>"><i class="icon-arrow-right icon-2x"></i></a>
                                <span>
                                    <a href="<?php echo $this->Html->url(array('action' => 'report')); ?>" >SRC Report</a>
                                    <p>SRC Report.</p>
                                </span>
                            </li>
                        <?php
                            }
                        ?>
                    </ul>

                    <div style="padding: 10px; margin-top: 30px;">
                        <?php echo $this->Message->msg('Account Balance', 'Your UPSA Payment Account Balance is <b>GHc ' . $credit_bal_money . '</b> as of <b>' . date('D M d, Y') . '</b> at <b>' . date('g:ia') . '</b>', 'success'); ?>
                        <input type="hidden" id="acct_balance" value="<?php echo $credit_bal_number; ?>"/>
                    </div>
                </div>
            </div>

            <div id="right_main" class="span8">
                <div id="main_group" class="inner_shadow">
                    <?php echo $this->fetch('content'); ?>
                </div>
            </div>
        </div>
    </div>
    <!--/row-->
</div>
</body>
</html>